package com.platform.service;

import com.platform.domain.model.UserSecurity;
import com.platform.domain.model.UserSecurityKey;

import java.util.List;

/**
* UserSecurity
*
* User: wangyang
* DateTime: 2012-10-08 16:11:58
*
*/
public interface UserSecurityService {

    /**
    *
    * 根据主键查询UserSecurity对象
    *
    * @param key
    * @return UserSecurity对象
    */
    UserSecurity selectByPrimaryKey(UserSecurityKey key) throws Exception;

    /**
    *
    * 根据查询条件查询符合条件的UserSecurity对象
    *
    * @param userSecurity
    * @return 符合条件的UserSecurity对象List
    */
    List<UserSecurity> select(UserSecurity userSecurity) throws Exception;

    /**
    *
    * 根据主键删除UserSecurity对象
    *
    * @param key
    * @return 影响条件数
    */
    int deleteByPrimaryKey(UserSecurityKey key) throws Exception;

    /**
    *
    * 根据条件删除符合条件的UserSecurity对象
    *
    * @param userSecurity
    * @return 影响条件数
    */
    int delete(UserSecurity userSecurity) throws Exception;

    /**
    *
    * 插入UserSecurity对象
    *
    * @param userSecurity
    * @return 影响条件数
    */
    int insert(UserSecurity userSecurity) throws Exception;

    /**
    *
    * 更新UserSecurity对象
    *
    * @param userSecurity
    * @return 影响条件数
    */
    int update(UserSecurity userSecurity) throws Exception;

}
